package work.wantyx.marqueztest.common.creation;

import cn.hutool.json.JSONObject;
import lombok.Data;

import java.time.ZonedDateTime;

@Data
public class ColumnLineageCreation {
    private ZonedDateTime eventTime = ZonedDateTime.now();
    private Job job;
    private Dataset inputs;
    private Dataset outputs;
    private String producer = "";
    private String schemaURL = "";

    @Data
    public static class Job{
        private String namespace;
        private String name;
    }

    @Data
    public static class Dataset{
        private String namespace;
        private String name;
        private JSONObject inputFacets;
        private JSONObject outputFacets;
    }
}
